package com.sh.controller;

import com.sh.common.BaseResult;
import com.sh.service.user.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;


    @GetMapping("/get")
    public BaseResult get() {
        return BaseResult.success(userService.getUserInfo());
    }

}
